package org.example.dao.dao.book;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.example.dao.dto.book.CCommodityDto;
import org.example.dao.entity.book.BCommodity;
import org.apache.ibatis.annotations.Mapper;
import org.example.dao.entity.book.BKind;

import java.util.List;

/**
 * (Commodity)表数据库访问层
 *
 * @author makejava
 * @since 2023-05-10 10:46:08
 */
@Mapper
public interface CommodityDao extends BaseMapper<BCommodity> {

    List<CCommodityDto> selectCommodityListByKind(BKind BKind);

    CCommodityDto selectCommodityById(@Param("id") String commodityId);

    List<CCommodityDto> selectCommodityBySales(@Param("number") Integer number);

}

